---
title: Linux安装git
date: '2024-08-30 17:45:11'
tags: ['']
draft: false
summary: Linux安装git yum安装 下载相关依赖 `shell yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel ` 下载git `shell yum -y install git-core `...
---

### Linux安装git

##### yum安装

1. 下载相关依赖

```shell
yum install curl-devel expat-devel gettext-devel  openssl-devel zlib-devel
```

1. 下载git

```shell
yum -y install git-core
```

##### apt安装

```shell
apt-get install curl-devel expat-devel gettext-devel  openssl-devel zlib-devel
```

1. 下载git

```shell
apt-get  install git
```
